package com.hitalkie.teacher.model;

import android.text.TextUtils;

import com.hitalkie.teacher.app.TalkieApplication;

import java.util.List;

/**
 * Date 9/21/16
 *
 * @author charliema
 */
public class Topic extends BaseModel {

    public long id; // ":377491722587808,
    public String create_time; // "1472623354000",
    public String update_time; // "1472623354000",
    public int status; // 1,
    public int type; // 1,
    public String title; // "title 3",
    public String title_zh;
    public String title_en;
    public String description; // "description 3",
    public String detail_zh; // "http://api.hitalkie.com:8080/talkie/webviews/topic_detail_zh/381414789218208",
    public String detail_en; // "http://api.hitalkie.com:8080/talkie/webviews/topic_detail_en/381414789218208",
    public String cover; // "http://ww2.sinaimg.cn/mw690/6b892bdfgw1f6wvznhlywj20ku0sdjx5.jpg",
    public List<TopicHint> topic_hints; //  Array[10]

    public String getTitle() {
        return TextUtils.equals(TalkieApplication.getLanguage(), "en") ? title_en : title_zh;
    }

}
